﻿using AutoMapper;
using MaterialTypeRecognition.Shell.AuthenticationServices;
using MaterialTypeRecognition.Shell.Controllers;
using MaterialTypeRecognition.Shell.MesServices;
using MaterialTypeRecognition.Shell.SaveInfos;
using MaterialTypeRecognition.Shell.Uers;
using MaterialTypeRecognition.Shell.ViewModels;

namespace MaterialTypeRecognition.Shell.Utils
{
    public class AutoMapperConfiguration : Profile
    {
        public AutoMapperConfiguration()
        {
            CreateMap<User, UserDto>().ReverseMap();
            CreateMap<User, UserInfoDto>().ReverseMap();
            CreateMap<UserModel, UserModelDto>().ReverseMap();
            CreateMap<AuthenticationResultDto, MaterialTypeRecognition.Shell.Controllers.AuthenticationResult>().ReverseMap();
            CreateMap<MesConfigurationSaveInfo, MesConfigurationWindowViewModel>().ReverseMap(); 
            CreateMap<StartRequestMessageDto, MesConfigurationSaveInfo>().ReverseMap();
        }
    }
}
